import shutil

file="init.sh"
with open(file,"r") as in_fp:
    with open("init_copy.sh","w") as out_fp:
        shutil.copyfileobj(in_fp,out_fp)
        print("copy file success")

""" 更高效的零拷贝, 看 os.sendfile()
"""